{include file="public/header"/}
{load href="/public/static/Content/ThemesBusiness/FormPage.css"}

<div id="tabState" class="easyui-tabs" fit="true">
    <div title="新建">
        <form id="formState">
            <table class="form_table" style="width:860px">
                <tr class="form_tr">

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        序列号
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="tagslogs_sn"
                            data-options="required:true,tipPosition:'right'," />
                    </td>

                    <!-- <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        保修卡编号
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="bianhao"
                            data-options="required:true,tipPosition:'right'," />
                    </td> -->

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        用户
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="user"
                            data-options="required:true,tipPosition:'right'," />
                    </td>
                    
                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        手机
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="mobile_phone" data-options="required:true,tipPosition:'right'," />
                    </td>

                    
                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        电子邮件
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="email" data-options="required:true,tipPosition:'right'," />
                    </td>

                  



                </tr>

                <tr class="form_tr">

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        企业电话
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="phone" data-options="required:true,tipPosition:'right'," />
                    </td>

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        企业单位
                    </th>
                    <td style="width:155px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-validatebox" type="text" validtype="workflowStateIsStart"
                            style="width:150px;" value="" name="danwei"
                            data-options="required:true,tipPosition:'right'," />
                    </td>

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        保修开始
                    </th>
                    <td style="width:180px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-datebox" type="text" name="starttime" style="width:158px;"
                            data-options="tipPosition:'right'" />
                    </td>

                    <th style="padding-left:8px;width:80px;" class="form_td form_th_title">
                        保修期限
                    </th>
                    <td style="width:180px;padding-left:8px;" colspan="1" class="form_td form_td_content">
                        <input class="easyui-datebox" type="text" name="endtime" style="width:158px;"
                            data-options="tipPosition:'right'" />
                    </td>

                </tr>

                <tr class="form_tr">
                    <td class="form_button_panel" colspan="6" style="padding-right:8px">
                        <a id="save" class="easyui-linkbutton form-toolbar-button"
                            data-options="iconCls:'icon-save'">保存</a>
                    </td>
                </tr>
                <input type="hidden" name="img" id="img" value="">
            </table>
        </form>
    </div>
</div>

<script>

    $(function () {
        $("#save").on("click", function () {
            $.ajax({
                type: 'POST',
                url: "save.html",
                data: $("#formState").serialize(),
                dataType: "json",
                async: false,
                error: function (request) {
                    alert("发送请求失败！");
                },
                success: function (data) {
                    if (data.status == 1) {
                        alert(data.msg);
                        // closeDialog();
                    } else {
                         $.messager.alert('提示', data.msg, 'error');
                        // return;
                        //alert(data.msg);

                    }

                }
            });
        })
    })


</script>

{include file="public/footer"/}